<script setup lang='ts'>
import { onMounted, ref } from 'vue'
import Testpart from './components/testpart.vue';
import { Test } from './api';
import type { Itest } from './type';

const list = ref<Itest[]>([])

const getList = async () => {
    let res = await Test['list']()
    list.value = res.data.data
    console.log(res, 'test')
}
onMounted(() => {
    getList()
})

</script>

<template>
    <div>
        测试列表
        <Testpart></Testpart>i
        <div v-for="(item, i) in list" :key="i">
            {{ item.path}}
        </div>
    </div>
</template>

<style lang="scss" scoped></style>
